//
//  ConfigFile.h
//  GasBusiness
//
//  Created by zfc on 2021/7/30.
//

#ifndef ConfigFile_h
#define ConfigFile_h


#define localhttp               @"http://new.gas888.com/merapi" //正式
//#define localhttp               @"http://dev.gas888.com" //测试

#define WeakSelf                __weak typeof(self) weakSelf = self;
#define StrongSelf               __strong typeof(self)strongSelf = weakSelf;
#define kAccountPath            [[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) firstObject] stringByAppendingPathComponent:@"account.archive"]
#define kUserinfoPath            [[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) firstObject] stringByAppendingPathComponent:@"userinfo.archive"]



/**白色*/
#define WhiteColor            [UIColor colorWithHexString:@"FFFFFF"]

/**黑色*/
#define BlackColor              [UIColor colorWithHexString:@"000000"]
#define Color333                [UIColor colorWithHexString:@"333333"]
#define Color666                [UIColor colorWithHexString:@"666666"]
#define Color999                [UIColor colorWithHexString:@"999999"]
#define ColorE6                 [UIColor colorWithHexString:@"E6E6E6"]
#define ColorF5                 [UIColor colorWithHexString:@"F5F5F5"]
#define Color80                 [UIColor colorWithHexString:@"808080"]
#define Color4D                 [UIColor colorWithHexString:@"4D4D4D"]
#define ColorB3                 [UIColor colorWithHexString:@"B3B3B3"]
#define ColorCC                 [UIColor colorWithHexString:@"CCCCCC"]
#define ColorEE                 [UIColor colorWithHexString:@"EEEEEE"]
#define PriceColor            [UIColor colorWithHexString:@"FF2A00"] //红色

 


#define ThemeColor            [UIColor colorWithHexString:@"FF5533"]
#define ClearColor            [UIColor clearColor]




#define kScreenH                [UIScreen mainScreen].bounds.size.height
#define kScreenW                [UIScreen mainScreen].bounds.size.width
#define kScaleW                 kScreenW/414.0f
#define kScaleH                 kScreenH/667.0f

#define kTopHeight              ((IS_IPHONE_X == YES) ? 88.0f : 64.0f)
#define kToolHeight             ((IS_IPHONE_X == YES) ? 44.0f : 20.0f)

#define kBottomHeight           ((IS_IPHONE_X == YES) ? 83.0f : 49.0f)
#define kBottomWhiteHeight      ((IS_IPHONE_X == YES) ? 34.0f : 0.0f)

#define IS_IPHONE_X ({\
BOOL tmp = NO;\
if (@available(iOS 11.0, *)) {\
if ([UIApplication sharedApplication].delegate.window.safeAreaInsets.top > 20) {\
tmp = YES;\
}else{\
tmp = NO;\
}\
}else{\
tmp = NO;\
}\
tmp;\
})

#endif /* ConfigFile_h */
